home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr47 / shwtxt16.zip / SHOWTEXT.INS < prev    next >
Text File  |  1995-03-11  |  6KB  |  175 lines

  1. SHOWTEXT PROGRAMMING LANGUAGE  (version 1.6)
  2. INSTRUCTION SET SUMMARY
  3. (syntax only - additional documentation is in SHOWTEXT.DOC)
  4.  
  5. ALIAS %varname=var
  6. ALIAS %varname=var,%varname=var
  7. ARROW
  8. ARROW OFF
  9. ATTR color_attribute_byte_value
  10. BEEP
  11. BCOPY buf TO buf (row1,col1,row2,col2)                         
  12. BCOPY buf TO buf (row1,col1,row2,col2) (row,col)        
  13. BFILL buf (row1,col1,row2,col2) val val
  14. BFILL buf (row1,col1,row2,col2) ASCII val
  15. BFILL buf (row1,col1,row2,col2) ATTR val
  16. BSWAP buf TO buf (row1,col1,row2,col2)                         
  17. BSWAP buf TO buf (row1,col1,row2,col2) (row,col)        
  18. BXOR buf (row1,col1,row2,col2) val
  19. C@ row,col
  20. CENTER MOUSE key
  21. CHK
  22. CLS
  23. CLS foreground,background
  24. COLOR foreground
  25. COLOR foreground,background
  26. COPY (source,destination) fade
  27. CSR LIM
  28. CSR LIM (row1,col1,row2,col2)
  29. CSR OFF
  30. CSR ON
  31. CSR ON num TO num              {num is the scan line 0 to 7}
  32. DIRTOP
  33. DIRBOT
  34. DIRPRV
  35. DIRNXT
  36. DIRCMP or DIRCMP "filename" or DIRCMP $(bfr,row,col1,col2)   {use ? as wildcard}
  37. DIRCPY buffer,fade
  38. DIRFND "filename" or DIRFND $(bfr,row,col1,col2)             {NO wildcards}
  39. DIRPRT buffer,row,column,attribute
  40. DO ... LOOP
  41. ERRORLEVEL dos_errorlevel_value
  42. EXIT       {or X}
  43. EXITC      {or XC}
  44. EXITDO     {or XDO}
  45. EXITFOR    {or XFOR}
  46. EXITWHILE  {or XWHILE}
  47. FOR var = val to val STEP val      {positive steps-used with NEXT instruction}
  48. FOR var = val to val NSTEP val     {negative steps-used with NEXT instruction}
  49.                                    {note: val itself is still positive}
  50. GOTO label    {or GT label}
  51. GOSUB label   {or GS label}        {used with RET instruction}
  52. {note: The GOTO/GOSUB keywords used elsewhere canNOT be shortened to GT/GS}
  53. GOLOOP
  54. GONEXT
  55. GOWEND
  56. IF ... THEN ... ELSEIF ... ELSE ... ENDIF
  57. IF BDIFF buf TO buf (row1,col1,row2,col2) (row,col) label
  58. IF BSAME buf TO buf (row1,col1,row2,col2) (row,col) label
  59. IF CLK (row1,col1,row2,col2) label
  60. IF NOT CLK (row1,col1,row2,col2) label
  61. IF CSR (row1,col1,row2,col2) label
  62. IF NOT CSR (row1,col1,row2,col2) label
  63. IF KEY key label
  64. IF NOT KEY key label
  65. IF Tn ticks label           {n=0 to 15}
  66. IF NOT Tn ticks label       {n=0 to 15}
  67. IF val label
  68. IF NOT val label
  69. INPUT TEXT (row,startcolumn,endcolumn,attribute)
  70. INPUT TEXT CAPS (row,startcolumn,endcolumn,attribute)
  71. INPUT var  (row,startcolumn,endcolumn,attribute)
  72. LEFT MOUSE key
  73. MEM PEEK offset var
  74. NEXT
  75. NEXT var
  76. NOCHK
  77. ON INTKEYn key GOTO label             {n=0 to 7}
  78. ON INTKEYn key GOSUB label            {n=0 to 7}
  79. ON var GOTO label1,label2,label3,label4
  80. ON var GOSUB label1,label2,label3,label4
  81. P+
  82. P-
  83. P@ row,col
  84. PCSR LIM
  85. PCSR LIM (row1,col1,row2,col2)
  86. PEEK buf (row,col) var var   
  87. PEEK buf (row,col) ASCII var 
  88. PEEK buf (row,col) ATTR var  
  89. PLAY "play text..."
  90. POKE buf (row,col) val val   
  91. POKE buf (row,col) ASCII val 
  92. POKE buf (row,col) ATTR val  
  93. POP  var         {e.g. POP 0}
  94. POP  var-var     {e.g. POP 0-255 or POP 255-0}
  95. PORT IN port var
  96. PRINT "text........."
  97. PRINT "text.........";
  98. PRINT CHAR(val)
  99. PRINT CHAR(val);
  100. PRINT var,format                {characters in format= 1 to 9 L Z O Q }
  101. PRINT var,format;               {characters in format= 1 to 9 L Z O Q }
  102. PUSH var         {e.g. PUSH 0 or PUSH V0} letter V is optional
  103. PUSH var-var     {e.g. PUSH 0-255 or PUSH 255-0}
  104. RESTART
  105. RESTORE fade
  106. RET                    {use with GOSUB}
  107. RETURN                 {same as RET}
  108. RIGHT MOUSE key
  109. RST K
  110. RST S            {one value at a time}
  111. RST Tn           {n=0 to 15, or n=math expression}
  112. RST TS           {resets all timerS}
  113. SAVE
  114. SCREENSAVER minutes                  {use minutes=0 to disable}
  115. SCROLL DOWN (row1,col1,row2,col2)
  116. SCROLL UP (row1,col1,row2,col2)
  117. SELECT CASE ... CASE ... CASE ELSE ... END SELECT
  118. system variables [info]                   {where info is Tn or ...}
  119.                  [RND num TO num]
  120. TTYPE "text......"
  121. TTYPE "text......";
  122. var=val
  123. var++
  124. var--
  125. var=val+val
  126. var=val-val
  127. var=val*val
  128. var=val/val
  129. var=val~val     {same as var=val MOD val}
  130. var=val^val     {exponentiation}
  131. var=val&val     {same as var=val AND val}
  132. var=val@val     {same as var=val OR val}────┬──alternate OR symbols
  133. var=val|val     {same as var=val OR val}────┘
  134. var=val#val     {same as var=val XOR val}
  135. var=`val        {same as var=NOT val}
  136. VIRTUAL val
  137. WAIT seconds           {or WT seconds}
  138. WAITKEY                {or WK}
  139. WAITKEY seconds        {or WK seconds}
  140. WAITKEY seconds,label  {or WK seconds,label}
  141. WHILE ... WEND
  142. WINDOW (row1,col1,row2,col2) windowtype           {use current colors}
  143. WINDOW (row1,col1,row2,col2) windowtype,attribute
  144. XFLOAD "filename.txt"    now uses STF file type
  145. XFSAVE "filename.txt"    now uses STF file type
  146. $(buf,row,startcolumn,endcolumn) {used with COPY,PRINT,TTYPE,PLAY,XFLOAD,XFSAVE}
  147. $DOS command
  148. $LIB ADD filespec1,filespec2,...,...,filespecN
  149. $LIB DIR "directoryname"
  150.  
  151. !  can be used in place of the word PRINT    { e.g.  !"hello world"    }
  152. !! can be used in place of the word TTYPE    { e.g. !!"bon jour monde" }
  153. ?  can be used in place of the word INPUT    { e.g. ?V1(1,15,25,31)    }
  154.  
  155. Notes:
  156.  
  157. "key" is a specified key on the keyboard. note SHIFT CTRL ALT can be used
  158.       but not simultaneously.
  159.  
  160. "label" is a program label. the (:) is not specified here.
  161.  
  162. "num" is a number
  163.  
  164. "val"  is either a number (0 to 255)
  165.        or a variable (V0 to V255)--------------> V(0) to V(255)
  166.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  167.  
  168. "var"  is either a variable  (V0 to V255) -----> V(0) to V(255)
  169.        or an indexed variable (VV0 to VV255)---> V(V(0)) to V(V(255))
  170.  
  171. Other required data fields can usually be numbers, variables
  172. or indexed variables.
  173. Variables can be of the following types:  V7   %TEMP   VV4   V%MISC 
  174.  
  175.